package com.crm.model.mdao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.crm.model.mpojo.Power;

@Mapper
public interface PowerMapper {
    int deleteByPrimaryKey(Integer pId);

    int insert(Power record);

    int insertSelective(Power record);

    Power selectByPrimaryKey(Integer pId);
    
    List<Power> selectParentId(Integer parentId);

    int updateByPrimaryKeySelective(Power record);

    int updateByPrimaryKey(Power record);
    
    List<Map<String,String>> selectMenuAll();
    List<Map<String,String>> selectMenuAllTable(@Param("statusid") Integer statusid,@Param("search") String search);
    /**
     * 根据用户ID获取权限菜单
     * @param uId
     * @return
     */
    List<Map<String,String>> selectMenusUid(Integer uId);
}